public class Main {
    public static void main(String[] args) {
        ThreadDemo demo = new ThreadDemo();
        Thread t1 = new Thread(
                () -> {
                    demo.save();
                }, "线程1"
        );
        Thread t2 = new Thread(() -> {
            demo.checkStatus();
        }, "线程2");
        t2.start();
        try {
            Thread.sleep(3000);
            t1.start();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
